#include "MakeCodeTable.h"

MakeCodeTable::MakeCodeTable()
{}

void tree::MakeCodeTable(int tem_code, int tem_len)
{
  code     = tem_code;
  code_len = tem_len;
  if (left_tree) left_tree->MakeCodeTable(tem_code << 1, tem_len + 1);
  if (right_tree) right_tree->MakeCodeTable((tem_code << 1) | 1, tem_len + 1);
}
